package com.tianhui.consignortwofei.mvp.model.enty.message;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @author fgs
 * @date 2020/9/10
 * @description
 **/
public class MessageInfo implements Parcelable {
    public String id;
    public String title;
    public String createTime;
    public String content;
    //1系统2单据3活动
    public int type;
    public boolean isChecked;
    public int imageId;
    //0未读1已读
    public int remindFlag;

    public String createBy;
    public String deleteDate;
    public String deleteFlag;
    public String dispatchno;
    public String inform;
    public String informTel;
    public String isPush;
    public String modifyBy;
    public String modifyTime;
    public String relateId;
    public String remindDate;
    public String url;


    public MessageInfo() {

    }

    public static final Creator<MessageInfo> CREATOR = new Creator<MessageInfo>() {
        @Override
        public MessageInfo createFromParcel(Parcel in) {
            MessageInfo messageInfo = new MessageInfo();
            messageInfo.id = in.readString();
            messageInfo.title = in.readString();
            messageInfo.createTime = in.readString();
            messageInfo.content = in.readString();
            messageInfo.type = in.readInt();
            messageInfo.imageId = in.readInt();
            return messageInfo;
        }

        @Override
        public MessageInfo[] newArray(int size) {
            return new MessageInfo[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(id);
        dest.writeString(title);
        dest.writeString(createTime);
        dest.writeString(content);
        dest.writeInt(type);
        dest.writeInt(imageId);
    }
}
